from google.appengine.ext import db
from google.appengine.api.users import User

class Campaign(db.Model):
    """The campaign model. This would be analogus to a Server in orpg1"""
    owner = db.UserProperty(auto_current_user_add=True)
    moderators = db.ListProperty(User)
    banned = db.ListProperty(User)
    users = db.ListProperty(User)
    name = db.StringProperty(required=True)
    description = db.TextProperty()
    site = db.URLProperty()

    last_used = db.DateTimeProperty(auto_now=True)
